$(function(){
    TeC.progress();
});
var TeC = new TeCenter();
// 进度条特效
TeC.progress = function(){
    var max = 100, span = i = 10,
        sec = 0;
    var action = function(){
        if(i<max) i += span;
        else i = 0;
        var xhtml = `
            <div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="`+i+`" aria-valuemin="0" aria-valuemax="100" style="width: `+i+`%"><span class="sr-only">`+i+`% Complete</span>
        `;
        $('#progress').html(xhtml);
        sec += 1;
        $('#timeAdder').html(sec+' (s)');
    }
    setInterval(action,1000);
}